package 多态的使用;

public class Dog extends Animals{
    public String name = "子类狗";
    @Override
    public void run() {
        System.out.println("狗跑得很快");
    }

    public void lookdoor(){
        System.out.println("看门狗");
    }
}
